const mongoose = require('mongoose');

const seatsSchema = new mongoose.Schema(
    {
        row: Number, // 座位行号
        col: Number, // 座位列号
        theaterId: {
            type: mongoose.Schema.Types.ObjectId,
            ref: "theaters"
        }, // 座位所从属的放映厅
    }

);



mongoose.model('seats', seatsSchema, "seats");


